package com.mfangsoft.zhuangjialong.app.entryactivity.mapper;

import java.util.List;
import java.util.Map;

import com.mfangsoft.zhuangjialong.app.entryactivity.model.BaseEntryActivity;
import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;
import com.mfangsoft.zhuangjialong.integration.order.model.OrderGift;
@WriterRepository
public interface BaseEntryActivityMapper {
    /**
     * 通过主键删除  
     *
     * @MLTH_generated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 插入数据  
     *
     * @MLTH_generated
     */
    int insert(BaseEntryActivity record);

    int insertSelective(BaseEntryActivity record);

    /**
     * 通过主键查询数据 
     *
     * @MLTH_generated
     */
    BaseEntryActivity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BaseEntryActivity record);
    
    List<BaseEntryActivity> selectEntryActivity(Page<BaseEntryActivity> page);

	Integer selectEntryActivityTotal();

    /**
     * 通过主键更新数据  
     *
     * @MLTH_generated
     */
    int updateByPrimaryKey(BaseEntryActivity record);

	void addEntryActivity(BaseEntryActivity baseEntryActivity);

	BaseEntryActivity selectSum(Integer id);
	
	Integer selectSeller(Map<String,Object> map);
	void addCustomerSeller(Map<String,Object> map);

	OrderGift selectOrderGift(Integer activity_id);
	
	Map<String,Object> selectCustomerNameAndSellerName(Integer customerId);

	
}